﻿namespace CCManger.Common.Message
{
    /// <summary>
    /// 基本协议内容
    /// </summary>
    public enum COMMAND
    {
        /// <summary>
        /// 心跳
        /// </summary>
        HeartBeat = 1000,
        /// <summary>
        /// 消息
        /// </summary>
        Message = 1,
        /// <summary>
        /// 客户端到服务器
        /// </summary>
        ClientToServer = 7,
        /// <summary>
        /// 客户端到客户端
        /// </summary>
        ClientToClient = 8,
        /// <summary>
        /// 服务器到客户端
        /// </summary>
        ServerToClient = 9,
        /// <summary>
        /// 空消息
        /// </summary>
        NULL = 0,
    }

    /// <summary>
    /// 协议里的操作内容
    /// </summary>
    public enum Operation
    {
        /// <summary>
        /// 用户登陆
        /// </summary>
        UserLogin = 10,

        /// <summary>
        /// 得到帐户信息
        /// </summary>
        GetUser = 11,
        /// <summary>
        /// 得到好友列表
        /// </summary>
        GetFriends = 0,
        /// <summary>
        /// 得到群组列表
        /// </summary>
        GetGroups = 1,
        /// <summary>
        /// 普通消息
        /// </summary>
        NormalMessage = 2,
        /// <summary>
        /// 上线通知
        /// </summary>
        OnlineNotify = 1001,
        /// <summary>
        /// 下线通知
        /// </summary>
        OfflineNotify = 1002,
        /// <summary>
        /// 群组成员上线通知
        /// </summary>
        GroupsUserOnlineNotify = 1003,
        /// <summary>
        /// 群组成员下线通知
        /// </summary>
        GroupsUserOfflineNotify = 1004,
    }
}